package csw;

import java.util.Scanner;

public class J05Ex24Gugudan {
	
	public static void main(String []args){
		//변수선언
		Scanner sc = null;
		int dan = 1;
		String result = "";  //출력전용

		//입력 및 구구단 생성
		sc=new Scanner(System.in);
		System.out.println("출력할 단을 입력");
		dan = sc.nextInt();
		
		if(dan >=1 && dan <=9){
			
			for(int i = 1; i<= 9; ++i){
				result= result +
						dan + " x"+ i + " = " +(dan*i) + "\n";
			}
		}else{
			result = "잘못입력하셧습니다";
		}
		
		
		//결과 출력
		result = result + ("입력하신 단은");
		result += dan;
		result = result + ("입니다");
		
		System.out.println(result);
		
		sc.close();
		
		
		
		
		
		
		
	}
}
